import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import BaiduMap from 'vue-baidu-map-3x'
import ECharts from 'vue-echarts'
import 'echarts'
import axios from '@/utils/http'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.config.globalProperties.$axios = axios
app.component('ECharts', ECharts)
app.use(ElementPlus)
app.use(BaiduMap, {
    // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
    ak: 'geWOoKtTV3VZksC9va2gd1hnHuLJ9Gw3',
    // v:'2.0',  // 默认使用3.0
    // type: 'WebGL' // ||API 默认API  (使用此模式 BMap=BMapGL)
  });
app.use(router)

app.mount('#app')
